package com.chinacoal.microservice.api.model.resource;

import java.util.HashMap;
import java.util.Map;

public class DictionaryCanvasData {
	
	protected String type;
	protected String name;
	protected Map<String,String> data;
	
	public DictionaryCanvasData(){
		this.type = "dictionary";
	}
	
	public DictionaryCanvasData add(String name,String value){

		if(this.data == null){
			this.data = new HashMap<String,String>();
		}
		data.put(name, value);
		return this;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Map<String, String> getData() {
		return data;
	}

	public void setData(Map<String, String> data) {
		this.data = data;
	}
	
	
}
